<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
<f:loadBundle var="text" basename="#{scxkList.bundleName}"/>
    <head>
        <title>#{text['scxkList.title']}</title>
        <meta name="heading" content="#{text['scxkList.heading']}"/>
        <meta name="menu" content="ScxkMenu"/>
    </head>
<body id="scxkList">
<h:form id="editScxk">

<h:commandButton value="#{text['button.add']}" action="add" id="add" immediate="true" styleClass="button"/>
<h:commandButton value="#{text['button.done']}" action="mainMenu" id="cancel" immediate="true" styleClass="button" style="margin-left: 5px"/>

<t:dataTable id="scxks" var="scxk" style="margin-top: 10px"
    value="#{scxkList.scxks}" rows="25" sortColumn="#{scxkList.sortColumn}"
    sortAscending="#{scxkList.ascending}" styleClass="scrollerTable table"
    headerClass="standardTable_Header" rowClasses="standardTable_Row1,standardTable_Row2"
    columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">

    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="cpxh" arrow="true">
                <h:outputText value="#{text['scxk.cpxh']}" />
            </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="#{scxkForm.edit}" value="#{scxk.cpxh}">
            <f:param name="scxkid" value="#{scxk.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="fzjg" arrow="true">
                <h:outputText value="#{text['scxk.fzjg']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.fzjg}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="gycpmc" arrow="true">
                <h:outputText value="#{text['scxk.gycpmc']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.gycpmc}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="wgjl" arrow="true">
                <h:outputText value="#{text['scxk.wgjl']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.wgjl}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xh" arrow="true">
                <h:outputText value="#{text['scxk.xh']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.xh}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="yxq" arrow="true">
                <h:outputText value="#{text['scxk.yxq']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.yxq}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="zsbh" arrow="true">
                <h:outputText value="#{text['scxk.zsbh']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.zsbh}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="zsmc" arrow="true">
                <h:outputText value="#{text['scxk.zsmc']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.zsmc}" escape="true"/>
    </t:column>
    <!--
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="id" arrow="true">
                <h:outputText value="#{text['scxk.id']}" />
            </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="#{scxkForm.edit}" value="#{scxk.id}">
            <f:param name="id" value="#{scxk.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column> 
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="jbqk" arrow="true">
                <h:outputText value="#{text['scxk.jbqk']}" />
            </t:commandSortHeader>
        </f:facet>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="operation" arrow="true">
                <h:outputText value="#{text['scxk.operation']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.operation}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="optdate" arrow="true">
                <h:outputText value="#{text['scxk.optdate']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.optdate}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="username" arrow="true">
                <h:outputText value="#{text['scxk.username']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.username}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="version" arrow="true">
                <h:outputText value="#{text['scxk.version']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{scxk.version}" escape="true"/>
    </t:column>
     -->
</t:dataTable>

<ui:include src="/common/tableFooter.xhtml">
    <ui:param name="tableName" value="scxks"/>
</ui:include>

<script type="text/javascript">
    highlightTableRows("editScxk:scxks");
</script>

</h:form>
</body>
</f:view>
</html> 